package com.acme.bankapp.domain.bank;

import java.util.LinkedList;
import java.util.List;

public class Client {
    private final Gender gender;
    private final String name;

    public Client(String name, Gender gender) {
        this.name = name;
        this.gender = gender;
    }

    private final List<Account> accounts = new LinkedList<Account>();

    public List<Account> getAccounts() {
        return accounts;
    }

    public void addAccount(Account account) {
        accounts.add(account);
    }

    public String getClientSalutation() {
        return gender.getTitle() + " " + name;
    }
}